#define _CRT_SECURE_NO_WARNINGS

#include<stdio.h>

void print(int n)
{
	if (n > 9)
	{
		print(n / 10);
	}
	printf("%d ", n%10);
}

int main()
{
	int n = 0;
	int i = 0;
	scanf("%d", &n);
	print(n);
	return 0;
}
#include<stdio.h>

int main()
{
    int n = 0;
    while (~scanf("%d", &n))
    {
        int i = 0;
        for (i = 0; i < n; i++)
        {
            int j = 0;
            for (j = 0; j < n - i - 1; j++)
            {
                printf(" ");
            }
            for (j = 0; j < i + 1; j++)
            {
                printf("* ");
            }
            printf("\n");
        }
    }
    return 0;
}
#include<stdio.h>

int main()
{
    int n = 0;
    scanf("%d", &n);
    int month = n % 100;
    if ((month >= 3) && (month <= 5))
    {
        printf("spring");
    }
    else if ((month >= 6) && (month <= 8))
    {
        printf("summer");
    }
    else if ((month >= 9) && (month <= 11))
    {
        printf("autumn");
    }
    else
    {
        printf("winter");
    }
    return 0;
}